package lab2.text35;

/**
 * Created by Administrator on 2017/11/21.
 */
public class Worker extends Employee{
    int days;
    double dailySalary;

    public Worker(String name,int days,double dailySalary) {
        super(name);
        this.days=days;
        this.dailySalary=dailySalary;
    }
    public double computerSalary(){
        return  days*dailySalary;
    }
}
